{% extends '/layout.html' %}

{% block title %}Register | 小白鼠{% endblock %}

{% block body %}
	<h1>Welcome to register！</h1>
	<hr>
	<div>
		<form action="{{ url_for('users.register' )}}" method="POST">
			{{ form.hidden_tag() }}

			<div><span>{{ form.username.label }}:&nbsp;</span>
			{{ form.username }}</div>
			{{ macros.show_errors(form.username.errors) }}

			<div><span>{{ form.password.label }}:&nbsp;</span>
			{{ form.password }}</div>
			{{ macros.show_errors(form.password.errors) }}

			<div><span>{{ form.fullname.label }}:&nbsp;</span>
			{{ form.fullname }}</div>
			{{ macros.show_errors(form.fullname.errors) }}

			<div>{{ form.submit }}</div>
		</form>
	</div>
{% endblock %}